package com.example.xt.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.xt.entity.Orders;
import com.example.xt.mapper.OrdersMapper;
import com.example.xt.service.IOrdersService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2022-03-05
 */
@Service
public class OrdersServiceImpl extends ServiceImpl<OrdersMapper, Orders> implements IOrdersService {
    @Resource
    OrdersMapper ordersMapper;

    @Override
    public Integer getprices(int i) {
        return ordersMapper.sel(i);
    }

    @Override
    public Integer getprofit(int i) {
        return ordersMapper.selprofit(i);
    }


}
